package cn.fzkj.gulimall.product.service;

import cn.fzkj.gulimall.product.vo.AttrGroupAndCascadeAttrsVo;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.fzkj.common.utils.PageUtils;
import cn.fzkj.gulimall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author chenxin
 * @email chenxin@gmail.com
 * @date 2022-02-19 22:47:32
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    /** 查询catelogId分类下的分组及分组下关联的所有属性 */
    List<AttrGroupAndCascadeAttrsVo> getAttrGroupAndCascadeAttrByCatelogId(Long catelogId);
}

